package com.example.demo.module;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户基础Bean
 * 
 * @author john
 */
@Data
@ToString
@NoArgsConstructor
public class UserDetailBean implements Serializable{

	private static final long serialVersionUID = -4073447348539449695L;

	private String id;

	private String userId;

	private String nickName;

	private Integer sex;

	private String constellation;
	
	private String birthday;

	private String city;

	private String height;

	private String weight;

	private String headPhoto;

	private String openId;

	private String persionSignature;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	public UserDetailBean(String id, String userId, String nickName, String headPhoto, String openId) {
		super();
		this.id = id;
		this.userId = userId;
		this.openId = openId;
		this.nickName = nickName;
		this.headPhoto = headPhoto;
	}

	public UserDetailBean(String id, String userId, String nickName, Integer sex, String headPhoto, String openId) {
		this.id = id;
		this.userId = userId;
		this.nickName = nickName;
		this.sex = sex;
		this.headPhoto = headPhoto;
		this.openId = openId;
	}

	public UserDetailBean(String id, String userId, String nickName, String openId) {
		super();
		this.id = id;
		this.userId = userId;
		this.openId = openId;
		this.nickName = nickName;
	}
}
